package cn.happy.action;

import cn.happy.beans.Stock;
import cn.happy.service.IStockService;

import com.opensymphony.xwork2.ActionSupport;

public class AddStockAction extends ActionSupport{

	private IStockService service;
	private Stock stock;
	@Override
	public String execute(){
		
		System.out.println("111");
		service.addStock(stock);
		return SUCCESS;
	}
	public IStockService getService() {
		return service;
	}
	public void setService(IStockService service) {
		this.service = service;
	}
	
	
}
